<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/2.1.4/jquery.js"></script>

</head>
<body>
    <button id="btn">提交</button>
    <script>
        $('#btn').click(function(){
            // $.ajax({
            //     type:'get',
            //     url:'/rrr',
            //     cache:false,//是否读取缓存
            //     data:{
            //         name:'yinwei'
            //     },
            //     dataType:'json',
            //     timeout:1000,
            //     success(data){
            //         console.log(data);
            //     }
            // })

            $.get('/rrr',{
                userid:'yineir'
            },(data)=>{
                console.log(data);
            })


            $.getJSON(
                '/rrr0,',
                {
                    userid :'yinwei'
                },
                (data)=>{
                    data
                }
            )

        })
        
    </script>
</body>
</html>